﻿<Window x:Class="Deployment.Data.Deploy.Steps.DuplicateStepDialog"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        x:Name="Dialog"
        Title="Duplicated StepId" 
        SizeToContent="WidthAndHeight" 
        
        WindowStartupLocation="CenterOwner" ResizeMode="NoResize" Topmost="True" Width="375">
    <StackPanel>
        <Grid Margin="4">
            <Grid.RowDefinitions>
                <RowDefinition Height="Auto"/>
                <RowDefinition Height="Auto"/>
                <RowDefinition Height="Auto"/>
                <RowDefinition Height="Auto"/>
                <RowDefinition Height="Auto"/>
            </Grid.RowDefinitions>
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="Auto"/>
                <ColumnDefinition Width="*"/>
            </Grid.ColumnDefinitions>
            <TextBlock TextWrapping="Wrap"
                   Grid.Row="0"
                   Grid.Column="0" Grid.ColumnSpan="2"
                   Text="Detected duplicated StepId.  You can Cancel to renumber the new Step or select how the existing steps should be re-ordered."/>
            <Label Grid.Column="0"
               Grid.Row="1"
               Content="Duplicate StepId:"/>
            <Label Grid.Column="1"
               Grid.Row="1"
               Content="{Binding StepId, Source=Dialog.NewStep}"/>
            <Label Grid.Column="0"
               Grid.Row="2"
               Content="Existing Step Description:"/>
            <Label Grid.Column="1"
               Grid.Row="2"
               Content="{Binding Description, Source=Dialog.ExistingStep}"/>
            <Label Grid.Column="0"
               Grid.Row="3"
               Content="New Step Description:"/>
            <Label Grid.Column="1"
               Grid.Row="3"
               Content="{Binding Description, Source=Dialog.NewStep}"/>
            
            <StackPanel Grid.Column="1"
                        Grid.Row="4"
                        Orientation="Vertical">
                <Label Content="Re-order Action:" FontWeight="Bold"/>
                <RadioButton Content="Put new step before existing step" GroupName="option" x:Name="BeforRadioButton"/>
                <RadioButton Content="Put new step after existing step" GroupName="options" x:Name="AfterRadioButton"/>
            </StackPanel>
        </Grid>
        <StackPanel HorizontalAlignment="Right" Margin="4" Orientation="Horizontal" ClipToBounds="True">
            <Button Content="Cancel" IsCancel="True" Margin="4" Padding="4"/>
            <Button Content="Ok" Margin="4" Padding="4"
                    />
        </StackPanel>
    </StackPanel>
    
</Window>
